package com.tiangou.order.servise.impl;

import com.tiangou.order.servise.UserServise;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

@Service
@Slf4j
public class UserServiceimpl implements UserServise {
    @Autowired
    private RestTemplate restTemplate;

    @Override
    public String getgoodsname() {
//        String str=restTemplate.getForObject("http://localhost:8001/goods/getgoodsname?name=牙刷",String.class);
//        log.info(str);
       System.out.println(restTemplate);
        return null;
    }
}
